package com.googlecode.animator.data.markers
{
	import com.googlecode.animator.data.IValueObject;
	
	public class GlobalMarkerVO extends BaseMarker
	{
		public static const TYPE:String = "GlobalMarker";

		public var time:int;
		
		override public function clone(src:* = null):IValueObject
		{
			var clone:IValueObject = super.clone(new GlobalMarkerVO());
			
			(clone as GlobalMarkerVO).time = this.time;
			
			return clone;
		}
		
		override public function toXML(src:XML = null):XML
		{
			var xml:XML = super.toXML(new XML(<{TYPE} id={this.id}></{TYPE}>));
			
			xml.appendChild(<time>{this.time}</time>);

			return xml;
		}
		
		override public function fromXML(src:XML):void
		{
			super.fromXML(src);
			
			this.time = src.time;
	
		}		
	}
	
	
}